package com.eduction.service.impl;

import java.sql.SQLException;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.eduction.modules.system.dao.CourseAnalyseRepository;
import com.eduction.modules.system.entity.CourseAnalyse;
import com.eduction.service.CourseAnalyseService;
@Service
public class CourseAnalyseServiceImpl implements CourseAnalyseService {

	@Autowired
	private CourseAnalyseRepository courseAnalyseRepository;
	@Override
	public String saveCourseAnalyse(CourseAnalyse c) throws SQLException {
		return this.courseAnalyseRepository.saveCourseAnalyse(c);
	}

	@Override
	public CourseAnalyse queryCourseAnalyseById(String id,String eid,String sid) throws SQLException {
		return this.courseAnalyseRepository.queryCourseAnalyseById(id,eid,sid);
	}
	@Override
	public CourseAnalyse queryCourseAnalyseById(String id,String sid) throws SQLException {
		return this.courseAnalyseRepository.queryCourseAnalyseById(id,sid);
	}

	@Override
	public List<CourseAnalyse> queryCAsByExpert(String expertId) throws SQLException {
		return this.courseAnalyseRepository.queryCAsByExpert(expertId);
	}

	@Override
	public CourseAnalyse findById(String pId) throws SQLException{
		return this.courseAnalyseRepository.findById(pId);
	}
	@Override
	public void deleteCourseAnalyseMapState(String sign, String schoolId, String expertId) throws SQLException{
		this.courseAnalyseRepository.deleteCourseAnalyseMapState(sign,schoolId,expertId);
	}
}
